import { GET, POST } from '@/utils'

enum API {
    GET_COUNT_API = '/queryCountAll2',
    GET_KIND_API = '/queryKindCount',
    GET_GROUP_API = '/queryGroupCount',
    GET_SEX_API = '/querySexCount',
    GET_DEPARTMENT_API = '/queryDepartmentCount',
    GET_ILLAREA_API = '/queryIllAreaCount',
    GET_DATE_DEPARTMENT_API = '/queryDataCount',
    GET_TEMPLATE_API = '/selectTemplate',
    GET_LONGTIME_API = '/queryLongTimeCount'
}

export const getCountApi = (data: any) => POST(API.GET_COUNT_API, data, false)
export const getKindApi = (data: any) => POST(API.GET_KIND_API, data, false)
export const getGroupApi = (data: any) => POST(API.GET_GROUP_API, data, false)
export const getSexApi = (data: any) => POST(API.GET_SEX_API, data, false)
export const getDepartmentApi = (data: any) => POST(API.GET_DEPARTMENT_API, data, false)
export const getIllAreaApi = (data: any) => POST(API.GET_ILLAREA_API, data, false)
export const getDateDepartmentApi = (data: any) => POST(API.GET_DATE_DEPARTMENT_API, data, false)
export const getTemplateApi = (data: any) => POST(API.GET_TEMPLATE_API, data, true)
// 查询超时数量(超时率，未超时率)
export const getLongTimeApi = (data: any) => POST(API.GET_LONGTIME_API, data, false)
